//
//  SFCDocument.h
//  SVNForCocoa
//
//  Created by Jeremy Pereira on 06/11/2013.
//  Copyright (c) 2013 Jeremy Pereira. All rights reserved.
//
/*!
 *    @file
 *    @brief Declarations associated with SFCDocument
 */

#import <Cocoa/Cocoa.h>


@class SFCDiffViewController;

/*!
 *    @brief Document reresenting a working copy.
 *
 *    The working copy is a directory, so we have to customise the normal
 *    document architecture a bit.
 *
 *    @todo Handle errors when a file is diffed.
 */
@interface SFCDocument : NSDocument
	<NSTableViewDataSource, NSTableViewDelegate, NSOutlineViewDataSource, NSOutlineViewDelegate>

/*!
 *    @brief Refresh the current view.
 *
 *    @param sender UI control or other that is senfing the action.
 */
-(IBAction) refresh: (id)sender;

/*!
 *    @brief The controller for the diff view.
 *
 *    Diffs are displayed as a list of hunks in a stack view.
 */
@property (strong) IBOutlet SFCDiffViewController* diffViewController;

@end
